#include <stdio.h>

void func() {
    asm volatile("movl 4(%esp),%eax\n");
}

void func2(){
    printf("func 2\n");
}



int main() {
    int x = 0, y;
    func();
    asm("movl %%eax,%0":"=a"(x)::);
    printf("here\n");
    int stack[100];
    stack[99] = x;
    y = (int) (stack + 99);
    asm volatile(
            "movl %0,%%esp\n"
            "ret"::"d"(y):
            );
    return 0;

}
